package com.relytosoft.mizar.media.camera.services.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.relytosoft.dubhe.common.core.base.page.PageQuery;
import com.relytosoft.mizar.media.camera.api.entity.Multimedia;
import com.relytosoft.mizar.media.camera.api.pojo.dto.MultimediaDto;
import com.relytosoft.mizar.media.camera.api.pojo.vo.MultimediaVo;
import com.relytosoft.mizar.media.camera.services.mapper.MultimediaMapper;
import com.relytosoft.mizar.media.camera.services.service.CameraBaseService;
import com.relytosoft.mizar.media.camera.services.service.MultimediaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wss
 * @version 1.0
 * @date 2022/6/8 10:51
 */
@Service
public class MultimediaServiceImpl extends ServiceImpl<MultimediaMapper, Multimedia> implements MultimediaService {

    @Autowired
    CameraBaseService cameraBaseService;

    @Override
    public IPage<MultimediaVo> pageList(MultimediaDto multimediaDto, PageQuery pageQuery) {
        Page<Multimedia> page = pageQuery.build();
        return baseMapper.selectPageList(page, multimediaDto);
    }
}
